package com.yanqu.data.entity.setting;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_s_monitor_goods_base_value", desc = "道具阈值定制")
public class CustomGoodsBaseValueData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "数据库自增主键")
    private long dbId;

    @FieldTypeAnnotation(desc = "渠道；0是所有")
    private int channelId;

    @FieldTypeAnnotation(desc = "道具")
    private int goodsId;

    /**
     * vip等级
     */
    @FieldTypeAnnotation(desc = "vip等级")
    private int vip;

    @FieldTypeAnnotation(desc = "最大值")
    private long maxNum;

    @FieldTypeAnnotation(desc = "最大次数")
    private long maxTimes;

    @FieldTypeAnnotation(desc = "是否删除")
    private int deleted;


    public long getDbId() {
        return dbId;
    }

    public void setDbId(long dbId) {
        this.dbId = dbId;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        if(this.channelId != channelId) {
            this.channelId = channelId;
            setUpdateOption();
        }
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        if(this.goodsId != goodsId) {
            this.goodsId = goodsId;
            setUpdateOption();
        }
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        if(this.deleted != deleted) {
            this.deleted = deleted;
            setUpdateOption();
        }
    }

    public long getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(long maxNum) {
        if(this.maxNum != maxNum) {
            this.maxNum = maxNum;
            setUpdateOption();
        }
    }

    public long getMaxTimes() {
        return maxTimes;
    }

    public void setMaxTimes(long maxTimes) {
        if(this.maxTimes != maxTimes) {
            this.maxTimes = maxTimes;
            setUpdateOption();
        }
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        if(this.vip != vip) {
            this.vip = vip;
            setUpdateOption();
        }
    }
}
